// import request from '/@/router/axios'
import request from "/@/utils/request"

export function fetchListRoom(query) {
  return request({
    url: '/bum/incomingLine/page',
    method: 'get',
    params: query
  })
}

export function addObjRoom(obj) {
  return request({
    url: '/bum/incomingLine',
    method: 'post',
    data: obj
  })
}

export function delObjRoom(id) {
  return request({
    url: '/bum/incomingLine/' + id,
    method: 'delete'
  })
}

export function putObjRoom(obj) {
  return request({
    url: '/bum/incomingLine',
    method: 'put',
    data: obj
  })
}
export function fetchList(query) {
  return request({
    url: `/bum/loopList/queryDevById`,
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/bum/loopList',
    method: 'post',
    data: obj
  })
}

export function delObj(id) {
  return request({
    url: '/bum/loopList?id=' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/bum/loopList',
    method: 'put',
    data: obj
  })
}

export function getEquipmentList(query) {
  return request({
    url: '/bum/devEnroll/page?current=1&size=999',
    method: 'get',
    params: query
  })
}